package com.snake.springboot.custom.service.port.adapter.event;

import org.springframework.context.ApplicationEvent;

/**
 * 事件公共
 * @param <T>
 * @author Yxt
 */
public class CommonEvent<T,V> extends ApplicationEvent {

    private T data;
    private V result;
    public CommonEvent(Object source, T data) {
        super(source);
        this.data=data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public V getResult() {
        return result;
    }

    public void setResult(V result) {
        this.result = result;
    }
}
